﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zombicide.Model
{
    public class Square
    {
        public int X { get; set; }
        public int Y { get; set; }
        public int XCalc { get { return X * (250 / 9); } }
        public int YCalc { get { return Y * (250 / 9); } }
        public int Width { get { return (250 / 9); } }
        public int Height { get { return (250 / 9); } }
        public bool IsUpAccessible { get; set; }
        public bool IsDownAccessible { get; set; }
        public bool IsLeftAccessible { get; set; }
        public bool IsRightAccessible { get; set; }
        public SquareType Type { get; set; }
        public bool IsSalvageable { get; set; }
        public int SalvageNumber { get; set; }
        public bool IsEntry { get; set; }
        public bool IsExist { get; set; }
        public Character Character { get; set; }

        public Square()
        {
            IsLeftAccessible = true;
            IsRightAccessible = true;
            IsUpAccessible = true;
            IsDownAccessible = true;
            Type = SquareType.Normal;
        }
    }

    public enum SquareType
    {
        Normal,
        Pharmacy,
        Armory,
    }
}
